package com.lut.demo1;

/**
 * @author liuning
 * @ProjectName GOF23
 * @time 2021/12/22 14:00
 */
public class Proxy implements Rent{

    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        host.rent();
        seeHouse();
        fare();
        agreement();
    }
    //看房
    public void seeHouse(){
        System.out.println("中介带你看房");
    }
    //收中介费
    public void fare(){
        System.out.println("收中介费");
    }
    //签合同
    public void agreement(){
        System.out.println("签合同");
    }
}
